package com.yhb.model;

import lombok.*;

import java.util.Date;

@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class Message {
    private String id;

    @NonNull
    private String userId;

    @NonNull
    private Type type;

    @NonNull
    private String title;

    @NonNull
    private String content;

    private Date time;


    public enum Type {
        SYSTEM,
        BONUS
    }
}
